<?php if (!defined('THINK_PATH')) exit();?><a href='<?php echo U( 'Home/Index/index' ); ?>'>返回首页</a><br><br>

编号：<?php echo ($product['id']); ?><br>
名称: <?php echo ($product['name']); ?><br>
描述: <?php echo ($product['descr']); ?><br>
图片: <img src='<?php echo ($product['photo']); ?>'><br>
价格: <?php echo ($product['price']); ?><br>
原始价格: <?php echo ($product['orPrice']); ?><br>

<br>
<br>

评论：<br><br>
<?php foreach ( $product['comment'] as $comment ) { ?>

	编号：<?php echo ($comment['id']); ?><br>
	内容：<?php echo ($comment['cont']); ?><br>
	作者：<?php echo ($comment['name']); ?><br>
	作者编号：<?php echo ($comment['user_id']); ?><br>
	<br>

<?php } ?>

<br>
<form method='post' action='<?php echo U( 'ProductComment/c' ); ?>'>
<input type='hidden' name='uid' value='<?php echo session( 'uid' ); ?>'/>
<input type='hidden' name='pid' value='<?php echo ($product['id']); ?>'/>
<textarea name='comment'></textarea><br>
<input type='submit'>
</form>